#include <iostream>

using std::cout;
using std::endl;

class Base
{
public:
    Base()
    {
        cout << "Base()" << endl;
    }

    Base(long base)
    : _base(base)
    {
        cout << "Base(long)" << endl;
    }
private:
    long _base;
};

class Derived
: public Base
{
public:
    Derived(long derived)
    /* : Base()//默认就会调用无参的 */
    : Base(derived)
    ,_derived(derived)
    {
        cout << "Derived(long)" << endl;
    }
private:
    long _derived;
};

int main(int argc, char *argv[])
{
    Derived d(10);
    return 0;
}

